package com.nep.NEPM.Data;

import javafx.beans.property.*;

public class ProvinceData {
    private final StringProperty provinceId;
    private final StringProperty provinceShort;
    private final StringProperty provinceName;
    private final IntegerProperty so2Exceed;
    private final IntegerProperty co2Exceed;
    private final IntegerProperty pm25Exceed;
    private final IntegerProperty aqiExceed;

    public ProvinceData(String id, String shortName, String name,
                        int so2, int co2, int pm25, int aqi) {
        this.provinceId = new SimpleStringProperty(id);
        this.provinceShort = new SimpleStringProperty(shortName);
        this.provinceName = new SimpleStringProperty(name);
        this.so2Exceed = new SimpleIntegerProperty(so2);
        this.co2Exceed = new SimpleIntegerProperty(co2);
        this.pm25Exceed = new SimpleIntegerProperty(pm25);
        this.aqiExceed = new SimpleIntegerProperty(aqi);
    }

    // Getter和Property方法...
    public String getProvinceId() { return provinceId.get(); }
    public StringProperty provinceIdProperty() { return provinceId; }
    // 其他属性的getter和property方法...
}